<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Awlsim project file generated by awlsim-0.66.0-pre -->
<awlsim_project date_create="2015-04-26 11:50:46.884405"
                date_modify="2018-07-08 18:00:09.727913"
                format_version="1">
	<!-- CPU core configuration -->
	<cpu>
		<!-- CPU core feature specification -->
		<specs call_stack_size="256"
		       nr_accus="2"
		       nr_counters="256"
		       nr_flags="2048"
		       nr_inputs="128"
		       nr_localbytes="1024"
		       nr_outputs="128"
		       nr_timers="256"
		       parenthesis_stack_size="7" />

		<!-- CPU core configuration -->
		<config clock_memory_byte="-1"
		        cycle_time_limit_us="1000000"
		        ext_insns_enable="0"
		        mnemonics="0"
		        ob_startinfo_enable="0"
		        run_time_limit_us="-1" />
	</cpu>

	<!-- AWL/STL language configuration -->
	<language_awl>
		<!-- AWL/STL source code -->
		<source enabled="1"
		        name="OB1"
		        type="0"><![CDATA[
// Bug: The DB source is in the hierarchy _before_
//      the FB source. However, the DB declaration
//      references the FB (it is an instance DB).
//      This caused errors in translation of the DBs.
// Fix: Deferred translation.

ORGANIZATION_BLOCK OB 1
BEGIN
	CALL	"test_fb", DB 1
	CALL	FB 2, DB 2


	CALL SFC 46 // STOP CPU
END_ORGANIZATION_BLOCK

]]></source>

		<!-- AWL/STL source code -->
		<source enabled="1"
		        name="DB"
		        type="0"><![CDATA[
DATA_BLOCK DB 1
	"test_fb"
BEGIN
END_DATA_BLOCK

DATA_BLOCK DB 2
	FB 2
BEGIN
END_DATA_BLOCK

]]></source>

		<!-- AWL/STL source code -->
		<source enabled="1"
		        name="FB"
		        type="0"><![CDATA[
FUNCTION_BLOCK "test_fb"
	VAR
		v : BOOL;
	END_VAR
BEGIN
	BE
END_FUNCTION_BLOCK

FUNCTION_BLOCK FB 2
	VAR
		v : BOOL;
	END_VAR
BEGIN
	BE
END_FUNCTION_BLOCK

]]></source>
	</language_awl>

	<!-- Symbol table configuration -->
	<symbols>
		<!-- symbol table source code -->
		<source enabled="1"
		        name="Symbol table"
		        type="3"><![CDATA[
126,test_fb                 FB 1        FB 1                                                                                      

]]></source>
	</symbols>

	<!-- Core server link configuration -->
	<core_link>
		<!-- Locally spawned core server -->
		<spawn_local enable="1"
		             interpreters="$DEFAULT"
		             port_range_begin="4183"
		             port_range_end="8278" />

		<!-- Remote server connection -->
		<connect host="localhost"
		         port="4151"
		         timeout_ms="3000" />

		<!-- Transport tunnel -->
		<tunnel local_port="-1"
		        type="0">
			<ssh executable="ssh"
			     port="22"
			     user="pi" />
		</tunnel>
	</core_link>

	<!-- Graphical user interface configuration -->
	<gui>
		<editor autoindent="1"
		        paste_autoindent="1"
		        validation="1" />
	</gui>
</awlsim_project>
